package builder.v1;

/**
 * Created by Administrator on 2022/9/29.
 * 建造这模式中的建造者（抽象类）Builder
 */
public abstract class HouseBuilder {
    public abstract void buildBase();

    public abstract void buildWall();

    public abstract void buildRoof();

    public House buildHouse() {
        buildBase();
        buildWall();
        buildRoof();
        return house;
    }

    protected House house;

}
